package com.maybach.workflow.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.workflow.common.model.FlowTaskHisDO;
import com.maybach.workflow.common.query.FlowTaskHisQuery;

import java.util.List;


/**
 * Manager for FlowTaskHis.
 */
public interface FlowTaskHisManager {
    /**
     * query count by query condition.
     */
    int countByQuery(FlowTaskHisQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(FlowTaskHisQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(FlowTaskHisDO record);

    /**
     * select by query condition.
     */
    List<FlowTaskHisDO> selectByQuery(FlowTaskHisQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<FlowTaskHisDO> selectByQueryWithPage(FlowTaskHisQuery query);

    /**
     * select by primary key.
     */
    FlowTaskHisDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( FlowTaskHisDO record,  FlowTaskHisQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(FlowTaskHisDO record, FlowTaskHisQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(FlowTaskHisDO record);
}